/**
 * 
 */
package info.niwota.group;

import java.io.IOException;

import android.media.MediaPlayer.OnCompletionListener;
import android.media.MediaPlayer.OnErrorListener;

/**
 * @author qiangli
 *
 */
public interface AudioPlayer {

	void setDataSource(String absolutePath) throws IOException, IllegalArgumentException, IllegalStateException;

	void setOnCompletionListener(OnCompletionListener recorder);

	void setOnErrorListener(OnErrorListener recorder);

	void prepare() throws IOException, IllegalStateException;

	void start();

	void stop();

	void release();

}
